﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfTipGastoBnd.aspx.cs" Inherits="CO.wfTipGasto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
   
    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>

     <script  type="text/javascript">
         function DevolverDatos(codigo, Descrip) {
             opener.fDevolverSeleccion1(codigo, Descrip);
         }
     </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <input id="dummy" type="button" style="display: none" runat="server" />
        <asp:UpdatePanel ID="udpInnerUpdatePanel" runat="Server" UpdateMode="Conditional">
          <ContentTemplate>
            <table width="100%" cellpadding="0" cellspacing="2">
                <tr>
                    <td colspan="3">
                        <div class="modalPopupHeader">
                            &nbsp;&nbsp;&nbsp;<asp:Label ID="lblTitlePopup" runat="server"></asp:Label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px;">
                        &nbsp;
                    </td>
                    <td>
                        <table width="100%" cellpadding="0" cellspacing="2">
                            <tr>
                                <td>
                                    <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                        <table width="100%" cellpadding="0" cellspacing="2">
                                            <tr>
                                                <td style="width: 5px;">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    Codigo
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtCodigo" runat="server" CssClass="esdTextBox" Width="100px"></asp:TextBox>
                                                </td>
                                                <td style="width:10px;">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    Descripción
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtDes" runat="server" CssClass="esdTextBox" Width="300px"></asp:TextBox>
                                                </td>
                                                <td style="width: 10px;">
                                                    <asp:Button ID="btnBuscar" runat="server" Text="Buscar" CssClass="esdButtonStyle" Width="80px" onclick="btnBuscar_Click" />
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td style="width: 5px;">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr align="center">
                                <caption>
                                    <td>
                                        <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                            <table cellpadding="0" cellspacing="2" width="100%">
                                                <tr>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr align="center">
                                                    <td>
                                                        <asp:GridView ID="gvListar" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="0" GridLines="None" onpageindexchanging="gvListar_PageIndexChanging" onrowdatabound="gvListar_RowDataBound" ShowFooter="True" Width="750px">
                                                            <AlternatingRowStyle CssClass="esdGridAlternativeRowStyle" />
                                                            <Columns>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <a ID="lnkSeleccionar" runat="server" href="javascript:void(0)">Seleccionar</a>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="50px" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Codigo">
                                                                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblMCLCodigo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Codigo") %>'>
                                                                </asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Descripcion">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lbldes" runat="server" Text='<%# Bind("Descripcion") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Producto">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblAbreviatura" runat="server" Text='<%# Bind("Abreviatura") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <HeaderStyle CssClass="esdGridHeaderStyle" />
                                                            <PagerStyle CssClass="gridPagerStyle" />
                                                            <RowStyle CssClass="esdGridRowStyle" />
                                                            <SelectedRowStyle CssClass="esdGridSelectedRowStyle" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </caption>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 5px;">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px;">
                        &nbsp;
                    </td>
                    <td align="right">
                        <asp:Button ID="bttOkPopup" runat="server" Text="Aceptar" Width="80px"></asp:Button>
                        <asp:Button ID="bttCancelPopup" runat="server" Text="Cancelar" Width="80px"></asp:Button>
                    </td>
                    <td style="width: 5px;">
                        &nbsp;
                    </td>
                </tr>
            </table>
         </ContentTemplate>
        </asp:UpdatePanel>
        <asp:HiddenField ID="hdnidCliProv" runat="server" />
    </form>
</body>
</html>
